<<<<<<< HEAD
# -*-  coding:utf-8 -*- 
# Author : lihongliang


# 函数外部的代码要想获取函数的执行结果，就可以在函数里用return语句把结果返回

#
# def stu_register(name,age,course):
#     print(name,age,course)
#     # if age > 22:
#     #     return False
#     # else:
#     #     return True
#
#     # return  name,age
#     return [name,age]
#
# stu_register_status = stu_register("alex",22,'python')
#
# print(stu_register_status)

# if stu_register_status:
#     print("注册成功")
# else:
#     print("too old to be a student")


print("分割线".center(50,"*"))

def stu_regsiter(name,age,course,country="CN"):
    print("name:",name)
    print("age",age)
    print("course",course)
    print("country",country)

    if age >22:
        return name,age
    else:
        return  True

status = stu_regsiter("peiqi",29,"python")
print(status)

=======
# -*-  coding:utf-8 -*- 
# Author : lihongliang


# 函数外部的代码要想获取函数的执行结果，就可以在函数里用return语句把结果返回


def stu_register(name,age,course):
    print(name,age,course)
    # if age > 22:
    #     return False
    # else:
    #     return True

    # return  name,age
    return [name,age]

stu_register_status = stu_register("alex",22,'python')

print(stu_register_status)

# if stu_register_status:
#     print("注册成功")
# else:
#     print("too old to be a student")
>>>>>>> dev
